package com.eastshop.adminuser.service;

import org.springframework.transaction.annotation.Transactional;

import sun.security.jgss.LoginConfigImpl;

import com.eastshop.adminuser.dao.AdminUserDao;
import com.eastshop.adminuser.vo.AdminUser;

/**
 * 后台用户登录的Service类
 * @author admin
 *
 */
@Transactional
public class AdminUserService {
	// 注入AdminUserDao
	private AdminUserDao adminUserDao;

	public void setAdminUserDao(AdminUserDao adminUserDao) {
		this.adminUserDao = adminUserDao;
	}

	// Service层后台用户登录方法
	public AdminUser login(AdminUser adminUser) {
		return adminUserDao.find(adminUser);
	}
	
}
